<div id="content">
  <div class="content_inner">
    <div id="main_categories">
      <h2>Choices list of <span style="color:#9F0000"><?php echo $questionName; ?></span></h2>
      <caption>&nbsp;</caption>
      <table width="100%" cellpadding="0" cellspacing="0" border="0" id="table1" class="tablesorter">
        <thead>
          <tr>
            <th title="Sort by Name" class="tooltip">Choice</th>
            <th title="Sort by Status">Is Correct</th>
            <th>Edit</th>
            <th>Delete</th>
          </tr>
        </thead>
        <tbody>
          <?php $i = 0; ?>
          <?php foreach ($choices as $choice) : ?>
            <tr id="<?php echo ($i%2 == 1)?'row2':'row1'; ?>">
              <td><?php echo $choice->getChoice(); ?></td>
              <td><?php echo ($choice->getIsCorrect() == 1)?'Correct':''; ?></td>
              <td><a href="<?php echo url_for('@choice-edit?id='.$choice->getId()); ?>">Edit</a></td>
              <td><a name="Are you sure to delete this choice?" class="delete" href="<?php echo url_for('@choice-delete?id='.$choice->getId()); ?>"></a></td>
            </tr>
          <?php $i++; ?>
          <?php endforeach; ?>
        </tbody>
      </table>
    </div>
  </div>
  <div class="buttons-add">
    <a href="<?php echo url_for('@choice-add?question_id='.$questionId); ?>"><button type="button">Add New</button></a>
  </div>
</div>